package com.rightsidetech.trade.dtos.request;


import com.rightsidetech.commom.base.TimeQueryRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class TdCommodityOrderListRequest extends TimeQueryRequest implements Serializable {
    @ApiModelProperty("订单编号")
    private String orderNo;
    @ApiModelProperty("联系人")
    private String usName;
    @Pattern(regexp = "^0|1|2|3|4|5|-1$",message = "订单状态不正确")
    @ApiModelProperty("订单状态,  0-待付款,1-已支付(用户)/待接单,  2-已支付(用户)/已完成, 3-待接单售后申请，4-售后申请, 5-已退款, -1-取消订单")
    private String orderStatus;
    @ApiModelProperty("所属大区")
    private Long areaId;
    @ApiModelProperty("所属门店")
    private String storeId;
    @ApiModelProperty("订单类型,0-上门服务, 1-到店自取")
    private Byte orderType;
    @ApiModelProperty("代理商id")
    private Long agentId;
    @ApiModelProperty("时间类型, 1-下单时间, 2-付款时间")
    @Range(min = 1, max = 2, message = "时间类型不正确")
    private Byte timeType;
    @Pattern(regexp = "^0|1|2|3|4|5|6$",message = "订单来源不正确")
    @ApiModelProperty("订单来源, 0-系统, 1-淘宝, 2-京东, 3-抖音,4-拼多多, 5-天猫, 6-苏宁")
    private String source;

}
